/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import GUI.MainForm;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 *
 * @author tuanhnm
 */
public class MainFormApp extends SingleFrameApplication {

    @Override
    protected void startup() {
        // Revoike MainForm JPanel
//        getMainFrame().setResizable(false);
        show(new MainForm(this));
    }

    public static void RefreshFrom(SingleFrameApplication paramFrame) {
        SingleFrameApplication cachedFrame = paramFrame;
        cachedFrame.getMainFrame().pack();
    }

    public static void main(String[] args) {
//           Application.launch(LoginFormApp.class, args);
        Application.launch(MainFormApp.class, args);
    }
}
